package com.mz.ieann.aide.city.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * <p>------------------------------------------------------
 * <p> Copyright (C) 2021 zhangmz, All rights reserved.
 * <p> If there is technical discussion, you can contact zhangmz90@foxmail.com
 * <p>------------------------------------------------------
 * <p> des
 * <p>
 *
 * @author Created by Administrator
 * @date on 2021 2021/10/27 21:19
 */
public class CreateWifiParam implements Parcelable {

    private List<WifiParam> routers;

    public CreateWifiParam(){

    }

    protected CreateWifiParam(Parcel in) {
        routers = in.createTypedArrayList(WifiParam.CREATOR);
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeTypedList(routers);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<CreateWifiParam> CREATOR = new Creator<CreateWifiParam>() {
        @Override
        public CreateWifiParam createFromParcel(Parcel in) {
            return new CreateWifiParam(in);
        }

        @Override
        public CreateWifiParam[] newArray(int size) {
            return new CreateWifiParam[size];
        }
    };

    public List<WifiParam> getRouters() {
        return routers;
    }

    public void setRouters(List<WifiParam> routers) {
        this.routers = routers;
    }

    @Override
    public String toString() {
        return "CreateWifiParam{" +
                "routers=" + routers +
                '}';
    }
}
